package com.lemon.smartsafety.view;

import android.app.Activity;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;

import com.lemon.smartsafety.R;


/**
 * 项目名称：${project_name}
 * 类名称：${type_name}
 * 类描述：
 * 创建人：Frago...
 * 创建时间：${date} ${time}
 * 修改人：${user}
 * 修改时间：${date} ${time}
 * 修改备注：
 */
public class ViewListBtm extends LinearLayout {

    private ProgressBar progressBar;
    private TextView textView;

    private Activity mAactivity;




    public ViewListBtm(Context context) {
        super(context);
        // TODO Auto-generated constructor stub

        LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        inflater.inflate(R.layout.view_list_btm, this);
        progressBar = (ProgressBar) findViewById(R.id.xlistview_footer_progressbar);
        textView = (TextView) findViewById(R.id.xlistview_footer_hint_textview);
    }

    public ViewListBtm(Context context, AttributeSet attrs) {
        super(context, attrs);
        // TODO Auto-generated constructor stub
        LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        inflater.inflate(R.layout.view_list_btm, this);
        progressBar = (ProgressBar) findViewById(R.id.xlistview_footer_progressbar);
        textView = (TextView) findViewById(R.id.xlistview_footer_hint_textview);
    }


    public  void init(){

    }




    public void setText(String str){
        if(textView!=null){
            textView.setText(str);
        }
    }




}